package com.ray.mapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ray.bean.AdvancePurchaseBean;
import com.ray.bean.CompanyMaterialTableBean;
import com.ray.pojo.AttendDevicePojo;
import com.ray.pojo.AttendSourceRecordPojo;

public interface VisitorMapper {

	AttendDevicePojo getDeviceInfoById(@Param("id")String id);
	
	void saveVisitorInfo(Map<String, String> map);
	
	List<Map<String, Object>> getDeviceByGuid(@Param("guid")String guid,@Param("company") String company);

	Map<String, String> getVisitorInfoById(@Param("id")String id);
		
	Map<String, String> getVisitorInfoByIdCard(@Param("idCard")String idCard,@Param("company") String company);

	ArrayList<Map> queryAttendance(Map<String, Object> map);

	int queryAttendanceCount(Map<String, Object> map);

	ArrayList<Map> queryVisitor(Map<String, Object> map);

	int queryVisitorCount(Map<String, Object> map);

	void deleteVisitorById(Map<String, Object> map);

	void updateVisitorInfo(@Param("userId")String userId,@Param("personImg") String personImg, @Param("personImgBaseEncode")String personImgBaseEncode);
	
	
}
 